# -*- coding: utf-8 -*-

from django.contrib import admin
from django.utils.translation import ugettext as _, ugettext_lazy

from .models import Category, Tag, Article
from .actions import copy_objects

class CategoryAdmin(admin.ModelAdmin):
    list_display = ['name']


class TagAdmin(admin.ModelAdmin):
    list_display = ['name']


class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title', 'created_time', 'modified_time', 'category', 'author')


admin.site.register(Category, CategoryAdmin)
admin.site.register(Tag, TagAdmin)
admin.site.register(Article, ArticleAdmin)

admin.site.add_action(copy_objects)

admin.site.site_title = u'博客管理'
admin.site.site_header = u'快活の小道士博客管理后台'
admin.site.index_title = u'日常操作'
